<div class="container">
<div class="logo">
<a href="${'/admin',url}">${L.home!'Home'}</a>
</div>
<div class="left_open">
  <a><i title="${L.openleft!'展开左侧栏'}" class="iconfont">&#xe699;</i></a>
</div>
<ul class="layui-nav right" lay-filter="">
          <%if(has(user)){%>
                <li class="layui-nav-item">
                    <a href="javascript:;">${L.manager!'Manager'}：${user.username}</a>
                    <dl class="layui-nav-child">
                        <!-- 二级菜单 -->
                        <dd>
                            <a onclick="Sca.open('${L.resetpass!'Change password'}','${'/admin/passport/reset',url}',600,400)">${L.resetpass!'Change password'}</a></dd>
                        <dd>
                            <a href="${'/admin/login/loginout',url}">${L.exit!'Login out'}</a></dd>
                    </dl>
                </li>
				<%}%>
		       <li class="layui-nav-item">
                    <a href="javascript:;">${L.language}：${locale=='en_US'?'Engilish':'简体中文'}</a>
                    <dl class="layui-nav-child">
                        <!-- 二级菜单 -->
                        <dd>
                            <a onclick="javascript:resetLocale('zh_CN');">简体中文</a></dd>
                        <dd>
                            <a href="javascript:resetLocale('en_US');">Engilish</a></dd>
                    </dl>
                </li>
</ul>
</div>
<script type="text/javascript">
function resetLocale(lan)
{   var Days = 30; 
    var exp = new Date(); 
    exp.setTime(exp.getTime() + Days*24*60*60*1000); 
    document.cookie = "locale="+ escape (lan) + ";path=/;expires=" + exp.toGMTString();
	location.reload();
}
</script>